//
//  LCGolbalLifeCollectionViewCell.m
//  lechuang
//
//  Created by Mr_hi on 2024/8/27.
//  Copyright © 2024 Mooyi. All rights reserved.
//

#import "LCGolbalLifeCollectionViewCell.h"
#import "LCGlobalLifeModel.h"

@interface LCGolbalLifeCollectionViewCell ()

@property (weak, nonatomic) IBOutlet UIImageView *lifethumbView;

@property (weak, nonatomic) IBOutlet UILabel *lifetitleLb;

@property (weak, nonatomic) IBOutlet UILabel *commissionLb;

@property (weak, nonatomic) IBOutlet UILabel *marketpriceLb;

@property (weak, nonatomic) IBOutlet UILabel *salepriceLb;

@property (weak, nonatomic) IBOutlet UILabel *discountLb;

@end


@implementation LCGolbalLifeCollectionViewCell

-(void)setLife:(LCGlobalLifeModel *)life {
    _life = life;
    
    [self.lifethumbView sd_setImageWithURL:[LCFunction XWX_URLImg:life.lifethumb]];
    self.lifetitleLb.text = life.lifetitle;
    self.commissionLb.text = kFORMAT(@"%@%%",life.commission);
    self.marketpriceLb.text = kFORMAT(@"¥%@",life.marketprice);
    self.salepriceLb.text = life.saleprice;
    self.discountLb.text = kFORMAT(@"%@折",life.discount);
}



@end
